package com.sslpay.merchant.api;

import com.sslpay.common.domain.BusinessException;
import com.sslpay.merchant.api.dto.MerchantDTO;

/**
 * 描述：
 *
 * @author ssl
 * @create 2020/04/13 15:02
 */
public interface MerchantService {


    /**
     * 根据id查找商户
     *
     * @param id
     * @return
     */
    MerchantDTO getMerchantById(Long id) throws BusinessException;

    /**
     * 商户注册
     *
     * @param merchantDTO
     * @return
     */
    MerchantDTO createMerchant(MerchantDTO merchantDTO) throws BusinessException;

    /**
     * 资质申请
     *
     * @param merchantId  商户ID
     * @param merchantDTO 资质申请信息
     */
    void applyMerchant(Long merchantId, MerchantDTO merchantDTO) throws BusinessException;
}
